<template>
	<h3>第一个组件</h3>
	<child-components :title="title" :newArray = "newArray"/>
</template>

<script>
	import childComponents from './childComponents.vue'
	
	export default{
		name:"my components",
		components:{
			childComponents
		},
		data() {
			return{
				
				title:"这是参数传递字符",
				newArray:["1","这是传输的数组","sfjaslkh"]
			}
		}
	}
</script>

<!-- scoped代表当前样式只在这个文件生效 -->
<style scoped>
	h3{
		color: red;
	}
</style>